/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function isEmail(str) {
    var reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/;
    return reg.test(str);
}

function onchange_sno(){
    alert("success");
    if(document.getElementById("StudentNumber").value==""){
        document.getElementById("lblSno").innerHTML="<b style=\"color: green\">Please input your student number</b>";
    }else{
        document.getElementById("lblSno").innerHTML="";
    }
}